package top.zsyle.sycc.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import top.zsyle.sycc.fallback.CourseUserLearnFallbackFactory;
import top.zsyle.sycc.result.JsonResult;

@FeignClient(value = "service-course", path = "courseUserLearn", contextId = "courseUserLearnService", fallbackFactory = CourseUserLearnFallbackFactory.class)
public interface CourseUserLearnService {

    @RequestMapping(value = "/byInfo/{courseId}/{loginId}",method = RequestMethod.GET)
    JsonResult byInfo(@PathVariable("courseId")Long courseId,@PathVariable("loginId")Long loginId);

}
